#set($layout = "/layout/no.html")  
#parse("/common/common.html")
##grid
<div class="page-content">
<div class="page-content-area">
		<form id="mainForm" action="#" class="form-horizontal" enctype="multipart/form-data">
			<input id="userId" name="userId" type="hidden" value="$!{record.userId}" />
			<div class="row">
			   <div class="col-md-6">
					   <div class="col-md-12">
						<div class="form-group">
							<label class="col-md-4 control-label no-padding-right" for="orgName"><span class="form-require">*</span>姓名</label>
							<div  class="col-md-8" >
								<input class="form-control required" type="text" id="userName" name="userName" placeholder="姓名" value="$!{record.userName}" />
							</div>
						</div>
					</div>
					<div class="col-md-12">
						<div class="form-group">
							<label class="col-md-4 control-label no-padding-right" for="parentOrgName">所属部门</label>
							<div  class="col-md-8" >
								<input class="form-control" type="text" id="orgName"   value="${orgName}" readonly="readonly"/>
								<input type="hidden" id="orgCode" name="orgCode" value="${record.orgCode}"/>
							</div>
						</div>
					</div>
					
					<div class="col-md-12">
						<div class="form-group">
							<label class="col-md-4 control-label no-padding-right" for="loginName"><span class="form-require">*</span>登录名称</label>
							<div  class="col-md-8" >
								<input class="form-control required " type="text" id="loginName" name="loginName" placeholder="登录名称" value="$!{record.loginName}" />
							</div>
						</div>
					</div>
					
					<div class="col-md-12">
						<div class="form-group">
							<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="idCard"><span class="form-require">*</span>身份证</label>
							<div  class="col-xs-10 col-sm-8" >
								<input class="form-control required isIdCardNo" type="text" id="idCard" name="idCard" placeholder="身份证" value="$!{record.idCard}" required/>
							</div>
						</div>
					</div>
			      
			   </div>
			   <!-- 头像 -->
			   <div class="col-md-6">
			      <div class="col-md-12">
			      	<div class="text-center">
			      	<!-- assets/avatars/user.jpg -->
					  <img src="$!{record.photoUrl}" class="rounded" style="width: 200px;height: 200px;border: 1px solid gray;"  id="userImage">
					  <div style="display: none;">
					    <input id="userImageFile" type="file" name="file" class="file">
					  </div>
					</div>
			      </div>
			   
			   </div>
			</div>
			<div class="row">
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="userType"><span class="form-require">*</span>用户类型</label>
					<div  class="col-xs-10 col-sm-8" >
						<select class="form-control required" id="userType" name="userType" >
					    #select($dicts.userType $record.userType)
					    </select>
					</div>
				</div>
			</div>
				<!-- 清楚浮动 -->
			<div style="height: 0px; width: 0px;clear: both;">&nbsp;</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="sex"><span class="form-require">*</span>性别</label>
					<div  class="col-xs-10 col-sm-8" >
						<select class="form-control required" id="sex" name="sex" >
					    #select($dicts.sex $record.sex)
					    </select>
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="telephone"><span class="form-require">*</span>联系电话</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control required isPhone" type="text" id="telephone" name="telephone" placeholder="联系电话" value="$!{record.telephone}" />
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="mobile">移动电话</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control isMobile" type="text" id="mobile" name="mobile" placeholder="移动电话" value="$!{record.mobile}"/>
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="birthday"><span class="form-require">*</span>出生日期</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control required date" type="text" id="birthday" name="birthday" placeholder="出生日期" value="$!date.format('yyyy-MM-dd',$!record.birthday)"  />
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="email"><span class="form-require">*</span>邮箱</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control required email" type="text" id="email" name="email" placeholder="邮箱" value="$!{record.email}"/>
					</div>
				</div>
			</div>
			
			
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="email">QQ</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control" type="text" id="qq" name="qq" placeholder="QQ" value="$!{record.qq}" />
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="email">wechat</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control" type="text" id="wechat" name="wechat" placeholder="wechat" value="$!{record.wechat}" />
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="email">facebook</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control" type="text" id="facebook" name="facebook" placeholder="facebook" value="$!{record.facebook}" />
					</div>
				</div>
			</div>
			
			
				<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="userStatus"><span class="form-require">*</span>状态</label>
					<div  class="col-xs-10 col-sm-8" >
						<select class="form-control required" id="userStatus" name="userStatus" >
					    #select($dicts.useStatus $record.userStatus)
					    </select>
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-6">
				<div class="form-group">
					<label class="col-xs-2 col-sm-4 control-label no-padding-right" for="indexSort"><span class="form-require">*</span>排序值</label>
					<div  class="col-xs-10 col-sm-8" >
						<input class="form-control required number" type="text" id="indexSort" name="indexSort" placeholder="请输入排序值" value="$!{record.indexSort}" required/>
					</div>
				</div>
			</div>
			
			
			<div class="col-xs-12 col-sm-12">
				<div class="form-group">
					<label class="col-xs-1 col-sm-2 control-label no-padding-right" for="address"><span class="form-require">*</span>居住地址</label>
					<div  class="col-xs-11 col-sm-10" >
						<textarea id="address" name="address" class="form-control required">$!{record.address}</textarea>
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-12">
				<div class="form-group">
					<label class="col-xs-1 col-sm-2 control-label no-padding-right" for="residenceAddress"><span class="form-require">*</span>户籍地址</label>
					<div  class="col-xs-11 col-sm-10" >
						<textarea id="residenceAddress" name="residenceAddress" class="form-control required">$!{record.residenceAddress}</textarea>
					</div>
				</div>
			</div>
			
			<div class="col-xs-12 col-sm-12">
				<div class="form-group">
					<label class="col-xs-1 col-sm-2 control-label no-padding-right" for="otherContactInfo">其他信息</label>
					<div  class="col-xs-11 col-sm-10" >
						<textarea id="otherContactInfo" name="otherContactInfo" class="form-control">$!{record.otherContactInfo}</textarea>
					</div>
				</div>
			</div>
		</div>	
		</form>
		</div>
	</div>
		
<script src="${contextPath}/js/common/profile/profile.js"></script>